package com.hua.nailcampus.acl.model;

import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableName;
import com.hua.nailcampus.acl.model.vo.UserVo;
import lombok.Data;

/**
 * @Author:chenjianhua
 * @Date:2023/11/15 19:05
 * @Version 1.8
 */
@Data
@TableName("nc_user")
public class User extends BaseEntity{
    private static final long serialVersionUID = 1L;


    @TableField("user_name")
    private String userName;

    @TableField("password")
    private String password;

    @TableField("phone")
    private String phone;

    @TableField("sex")
    private Integer sex;

    @TableField("email")
    private String email;

    @TableField("signature")
    private String signature;

    @TableField("status")
    private Boolean status;

    public User(){
    }
    public User(UserVo userVo){
        this.setId(userVo.getId());
        this.userName = userVo.getUserName();
        this.password = userVo.getPassword();
        this.phone = userVo.getPhone();
        this.sex = userVo.getSex();
        this.email = userVo.getEmail();
        this.signature = userVo.getSignature();
        this.status = userVo.getStatus();
    }

}
